package com.application.lucky.adapter;

import android.widget.ImageView;

import com.application.lucky.R;
import com.application.lucky.bean.jsonBean.FriendBean;
import com.qunar.im.ui.util.ProfileUtils;
import com.qunar.im.ui.view.recyclerview.BaseQuickAdapter;
import com.qunar.im.ui.view.recyclerview.BaseViewHolder;

public class FriendSearchAdapter extends BaseQuickAdapter<FriendBean, BaseViewHolder> {
    public FriendSearchAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, FriendBean item) {
        ImageView thumb = helper.getView(R.id.iv_item_contact_thumb);

        helper.setText(R.id.tv_item_cantact_name, item.getNickName());

//        if (!TextUtils.equals(item.getHeadPic(), Config.HIDE_PIC)) {
            ProfileUtils.displayGravatarRoundedCornerByImageSrc(mContext, item.getHeadPic(), thumb);
//        }
    }
}
